//
//  QInvoiceRecordDateCell.m
//  QoilPublic
//
//  Created by 杨凯 on 2017/2/24.
//  Copyright © 2017年 杨凯. All rights reserved.
//

#import "QInvoiceRecordDateCell.h"
@interface QInvoiceRecordDateCell()
@property (weak, nonatomic) IBOutlet UILabel *monthLab;
@property (weak, nonatomic) IBOutlet UILabel *invoiceAmountLab;
@property (weak, nonatomic) IBOutlet UIImageView *invoiceImg;
@property (weak, nonatomic) IBOutlet UILabel *invoiceTaxationLab;

@end
@implementation QInvoiceRecordDateCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self setSeparatorInset:UIEdgeInsetsZero];
    [self setLayoutMargins:UIEdgeInsetsZero];

}
- (void)setModel:(QInvoiceRecordModel *)model{
    _model =model;
    _monthLab.text =[NSString stringWithFormat:@"%@月",_model.month];
    _invoiceAmountLab.text = [NSString stringWithFormat:@"%@元",_model.invoiceAmount];
    _invoiceTaxationLab.text =[NSString stringWithFormat:@"%@元",_model.invoiceTaxation];
    if ([_model.invoiceType isEqualToString:@"1"]) {
        _invoiceImg.image =[UIImage imageNamed:@"Invoice_common"];
    }else{
        _invoiceImg.image =[UIImage imageNamed:@"Invoice_special"];
    }
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
